package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppKnapsackDao;
import com.vf.admin.client.service.AppKnapsackService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppKnapsack;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppKnapsackServiceImpl implements AppKnapsackService {

    @Autowired
    private AppKnapsackDao appKnapsackDao;

    @Override
    public List<AppKnapsack> getABackpackGift(Integer userid, SplitPageBean splitPage) {
        return appKnapsackDao.getABackpackGift(userid,splitPage);
    }

    @Override
    public void save(AppKnapsack haoYou) {
        appKnapsackDao.save(haoYou);
    }

    @Override
    public void del(Integer id) {
        appKnapsackDao.del(id);
    }

    @Override
    public List<AppKnapsack> getBeibao(Integer userid) {
        return appKnapsackDao.getBeibao(userid);
    }
    @Override
    public AppKnapsack get(Integer id) {
        return appKnapsackDao.get(id);
    }
    @Override
    public  AppKnapsack getUog(Integer userid,Integer giftid) {
        return appKnapsackDao.getUog(userid,giftid);
    }
}
